<%@page import="java.awt.print.Printable"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<head>
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<meta HTTP-EQUIV="expires" CONTENT="0">
<title>_公告管理</title>
<script type="text/javascript" src="${ctx}/static/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="${ctx}/static/ckeditor/config.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		//聚焦第一个输入框
		$("#customers_customerName").focus();
		//为inputForm注册validate函数
		//$("#inputForm").validate();
	});
</script>
</head>

<body>
<section class="content">
<div class="row">
		<div class="col-md-12">

			<!-- Primary box -->
			<div class="box box-solid box-primary">
				<div class="box-header">
					<i class="fa fa-edit"></i>
					<h3 class="box-title">管理公告</h3>
					<div class="box-tools pull-right">
						<button class="btn btn-primary btn-sm" data-widget="collapse">
							<i class="fa fa-minus"></i>
						</button>
					</div>
				</div>
				 
	</div>
	</div>
	</div>
	
		<div class="row">
			<div class="col-md-12">
				
			</div>
		</div>
	<form id="inputForm" action="${ctx}/notice/${action}" method="post" class="form-horizontal">
	<input type="hidden" name="id" value="${notice.id}"/>
		<div class="form-group row">
				<div class="col-sm-3">
						<div class="input-textgroup  col-sm-12">
			 	<label class="input-group-text">公告标题:</label>
			 	<input id="customers_customerName" name="noticeTitle" value="${notice.noticeTitle}" class="form-control  required"   type="text">
				</div>
			 	</div>
			 	
			 	<div class="col-sm-3">
						<div class="input-textgroup  col-sm-12">
			 	<label class="input-group-text">是否置顶:</label>
				 <select style="display: none;"  name="status" id="status" class="form-control required valid">
					<option value="1" ${notice.status=="1"?"selected":"" }>置顶</option>
					<option value="0" ${notice.status=="0"?"selected":"" }>不置顶</option>
				</select>
				</div>
			 	</div>
			 	</div>
		<label></label>
		
		<div><textarea name="financial.bz">${notice.noticeDes}</textarea></div>
		<script type="text/javascript">CKEDITOR.replace('financial.bz');</script>
		<input id="submit_btn" class="btn btn-primary" type="submit" value="提交"/>
		<input id="cancel_btn" class="btn" type="button" value="返回" onclick="history.back()"/>
	</form>
	</section>
	
</body>
</html>
